package org.example.lesson02;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class les02_Demo_03 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fileOutputStream = new FileOutputStream("d:/javacode/aaa/abc.txt");
        //写入内容到文件，以字节的形式写入文件
        fileOutputStream.write(97);
        fileOutputStream.write(98);
        fileOutputStream.write(99);
        fileOutputStream.write('\n');
        //刷新一下缓冲区
        fileOutputStream.flush();
        //关闭流
        fileOutputStream.close();
    }
}
